<div class="content-wrapper">
    <section class="content-header">
        <h1>受理下单</h1>
        <ol class="breadcrumb">
            <li><a href="/"><i class="fa fa-dashboard"></i> 首页</a></li>
            <li class="active">订单管理</li>
            <li class="active">受理下单</li>
        </ol>
    </section>
    <section class="content">
        <div class="box">
            <div class="box-header with-border">
                <form class="form-inline" action="/admin/order/yzWaitAcceptOrderList" method="get">
                    <div class="form-group">
                        <label for="company_name">客户名称 </label>
                        <input type="text" class="form-control" id="company_name" name="company_name" placeholder="客户名称" value="{$company_name}">
                    </div>
                    <div class="form-group">
                        <label for="department">部门 </label>
                        <input type="text" class="form-control" id="department" name="department" placeholder="部门" value="{$department}">
                    </div>
                    <div class="form-group">
                        <label for="admin_name">部门人员 </label>
                        <input type="text" class="form-control" id="admin_name" name="admin_name" placeholder="部门人员" value="{$admin_name}">
                    </div>

                    <button type="submit" class="btn btn-info" id="save-btn">查询</button>
                </form>
            </div>
            <div class="box-body table-responsive">
                <table class="table table-bordered">
                    <tbody>
                    <tr>
                        <th style="width: 80px">ID</th>
                        <th>订单ID</th>
                        <th>客户名称</th>
                        <th>推广产品</th>
                        <th>状态</th>
                        <th>下单时间</th>
                        <th>订单金额（元）</th>
                        <th>部门</th>
                        <th>部门人员</th>
                        <th style="width: 150px">操作</th>
                    </tr>
                    <if condition="count($orderList) eq 0"><tr><td class="text-center" colspan="10">暂无数据...</td></tr></if>
                    <foreach name="orderList" item="order">
                        <tr>
                            <td>{$order.order_id}</td>
                            <td>{$order.order_code}</td>
                            <td>{$order.company_name}</td>
                            <td>{$order.product_name}</td>
                            <td><p>{$order.status_desc}</p>
                                <if condition="$order.status eq 35 ">
                                    <if condition="$order.dp_manager_review eq 1 ">
                                        <span class="label label-success">已通过</span>
                                        <else />
                                        <span class="label label-danger">已拒绝</span>
                                    </if>
                                    <elseif condition="$order.status eq 40 " />
                                    <if condition="$order.director_review eq 1 ">
                                        <span class="label label-success">已通过</span>
                                        <else />
                                        <span class="label label-danger">已拒绝</span>
                                    </if>
                                    <elseif condition="$order.status eq 45 " />
                                    <if condition="$order.g_manager_review eq 1 ">
                                        <span class="label label-success">已通过</span>
                                        <else />
                                        <span class="label label-danger">已拒绝</span>
                                    </if>
                                </if>
                            </td>
                            <td>{$order.create_time}</td>
                            <td>{$order.amount}</td>
                            <td>{$order.department_name}</td>
                            <td>{$order.admin_name}</td>
                            <td style="width: 150px;">

                                <php>if($order['status']>=55){</php>
                                    <button class="btn btn-info btn-xs btn-accept-order" type="button" data-id="{$order.order_id}">完善订单</button>
                                <php>}</php>
                                <button class="btn bg-maroon btn-xs " type="button" data-id="{$order.id}" onclick="window.location.href='/admin/order/orderDetail?id={$order.order_id}'">详情</button>&nbsp;
                            </td>
                        </tr>
                    </foreach>
                    </tbody>
                </table>
            </div>
            <div class="box-footer clearfix">{$page_html}</div>
        </div>
    </section>
</div>
<script src="__PUBLIC__/AdminLTE/plugins/layer/layer.js"></script>